package com.mk.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comment implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    public static final String REDIS_ARTICLE_KEY = "article:";
    public static final String REDIS_DISCUSS_KEY = "discuss:";

    public static final String ARTICLE_ID = "articleId";
    public static final String DISCUSS_ID = "discussId";
    public static final String USER_ID = "userId";
    public static final String CONTENT = "content";
    public static final String IMAGE = "image";
    public static final String BE_LIKED = "beLiked";
    public static final String CREATE_TIME = "createTime";

    private Long id;
    //发送评论的文章id
    private Long articleId;
    //别人的评论id
    private Long discussId;
    //评论的用户id
    private Long userId;
    //内容（字数限制100）
    private String content;
    //图片
    private String image;
    //被点赞量
    private Long beLiked;
    //评论时间
    private LocalDateTime createTime;
}
